package com.nulgame.bukkit.plugin.responsebuilder;

import com.nulgame.bukkit.plugin.resource.Resource;

public class AntiWordCapResponseBuilder extends GenericResponseBuilder {
	private Long m_percentage;
	public AntiWordCapResponseBuilder(String responseFormat, String playerName,String message, Long percentage) {
		super(responseFormat, playerName, message);
		m_percentage = percentage;
	}
	@Override
	public String toResponse() {
		String response = super.toResponse();
		if(response == null){
			return null;
		}
		response = response.replaceAll(Resource.ALLOWED_PERCENTAGE_VARIABLE, m_percentage.toString());
		return response;
	}
}	
